package com.SunSoft.PhoneRemoteControl;

import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnTouchListener;
import android.widget.ImageView;
import android.widget.Toast;
import java.util.Timer;

final class l
  implements View.OnTouchListener
{
  public final boolean onTouch(View paramView, MotionEvent paramMotionEvent)
  {
    switch (paramMotionEvent.getAction())
    {
    case 2:
    default:
    case 0:
      do
      {
        return true;
        this.a.ap.setImageResource(2130837602);
        MainControl.a(this.a);
        if (MainControl.b(this.a) != 0)
          continue;
        this.a.e();
        return true;
      }
      while (!(this.a.E));
      this.a.E = false;
      new Timer().schedule(new cr(this.a), 2000L);
      if (MainControl.b(this.a) == 0)
      {
        Toast.makeText(this.a, this.a.getString(2131099846), 0).show();
        return true;
      }
      if (MainControl.c(this.a))
      {
        Toast.makeText(this.a, this.a.getString(2131099861), 0).show();
        return true;
      }
      Toast.makeText(this.a, this.a.getString(2131099860), 0).show();
      return true;
    case 1:
    }
    this.a.ap.setImageResource(2130837601);
    return true;
  }
}